package com.hy.demo.ui.tools;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.gyf.immersionbar.BarHide;
import com.gyf.immersionbar.ImmersionBar;
import com.hy.demo.BuildConfig;
import com.hy.demo.R;
import com.hy.demo.app.BaseActivity;
import com.hy.demo.ui.MainActivity;
import com.hy.demo.util.RootUtil;
import com.hy.frame.util.ActUtil;
import com.hy.frame.util.TimerUtil;

/**
 * title RootActivity
 * author HeYan
 * time 2022/8/17
 * desc 无
 */
public class RootActivity extends BaseActivity  {

    private Button btnRoot;
    private TextView txtMsg;
    private TimerUtil timer;

    @Override
    protected int getLayoutId() {
        return R.layout.v_tool_root;
    }

    @Override
    protected void initView() {
        btnRoot = findViewById(R.id.btn_root);
        txtMsg = findViewById(R.id.txt_message);
        btnRoot.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                RootUtil.exeCmdWithRoot(new String[]{});
            }
        });
    }

    @Override
    protected void initData() {
        setTitle(R.string.tools_adb);
    }

}
